package server.core.decorator;


import server.core.AbstractBeverage;

/**
 * describe:奶泡装饰
 *
 * @author helloworldyu
 * @data 2018/1/4
 */
public class Whip extends AbstractCondimentDecorator{
	public Whip(AbstractBeverage beverage) {
		super(beverage);
	}

	@Override
	public double cost() {
		return 0.1+this.beverage.cost();
	}

	@Override
	public String getDescription() {
		return beverage.getDescription()+" add Whip";
	}
}